<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改门禁事件记录')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-event-edit" th:object="${yktAccessEvent}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">事件名称：</label>
                    <div class="col-sm-8">
                        <input name="eventName" th:field="*{eventName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">事件产生时间(ISO8601格式)：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="eventTime" th:value="${#dates.format(yktAccessEvent.eventTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">人员唯一编码：</label>
                    <div class="col-sm-8">
                        <input name="personId" th:field="*{personId}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">卡号：</label>
                    <div class="col-sm-8">
                        <input name="cardNo" th:field="*{cardNo}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">人员姓名：</label>
                    <div class="col-sm-8">
                        <input name="personName" th:field="*{personName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">人员所属组织编码：</label>
                    <div class="col-sm-8">
                        <input name="orgIndexCode" th:field="*{orgIndexCode}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">人员所属组织名称：</label>
                    <div class="col-sm-8">
                        <input name="orgName" th:field="*{orgName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">门禁点名称：</label>
                    <div class="col-sm-8">
                        <input name="doorName" th:field="*{doorName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">门禁点编码：</label>
                    <div class="col-sm-8">
                        <input name="doorIndexCode" th:field="*{doorIndexCode}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">门禁点所在区域编码：</label>
                    <div class="col-sm-8">
                        <input name="doorRegionIndexCode" th:field="*{doorRegionIndexCode}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">抓拍图片地址(相对地址，用于获取图片接口)：</label>
                    <div class="col-sm-8">
                        <input name="picUri" th:field="*{picUri}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">图片存储服务唯一标识(与pic_uri配对)：</label>
                    <div class="col-sm-8">
                        <input name="svrIndexCode" th:field="*{svrIndexCode}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">读卡器唯一标识：</label>
                    <div class="col-sm-8">
                        <input name="readerDevIndexCode" th:field="*{readerDevIndexCode}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">读卡器名称：</label>
                    <div class="col-sm-8">
                        <input name="readerDevName" th:field="*{readerDevName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">控制器设备唯一标识：</label>
                    <div class="col-sm-8">
                        <input name="devIndexCode" th:field="*{devIndexCode}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">控制器设备名称：</label>
                    <div class="col-sm-8">
                        <input name="devName" th:field="*{devName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">身份证图片地址(用于获取图片接口)：</label>
                    <div class="col-sm-8">
                        <input name="identityCardUri" th:field="*{identityCardUri}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">事件入库时间(ISO8601格式)：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="receiveTime" th:value="${#dates.format(yktAccessEvent.receiveTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">工号：</label>
                    <div class="col-sm-8">
                        <input name="jobNo" th:field="*{jobNo}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">学号：</label>
                    <div class="col-sm-8">
                        <input name="studentId" th:field="*{studentId}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">证件号码：</label>
                    <div class="col-sm-8">
                        <input name="certNo" th:field="*{certNo}" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/event";
        $("#form-event-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-event-edit').serialize());
            }
        }

        $("input[name='eventTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='receiveTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>